﻿using ChurchDiary.BLL;
using ChurchDiary.Common;
using ChurchDiary.TableEntity;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace ChurchWebsite.Filters
{
    public class Actionfilter : ActionFilterAttribute
    {
       
        public override void OnActionExecuted(ActionExecutedContext filterContext)
        {

            //
            string actionName = filterContext.ActionDescriptor.ActionName;
            string controllerName = filterContext.ActionDescriptor.ControllerDescriptor.ControllerName;
            EntityNotification Notification = new EntityNotification();
            Notification.ControllerName = controllerName;
            Notification.ActionName = actionName;
            string result = new BLL_Settings().InsertNotification(Notification);
        }

        


       
    }
}